package com.maserb.monitor.dataCenter.communication;

public enum  CommandTypeEnum {
    HEARTBEAT(0, "心跳"), EIGENVALUE_REALTIME(1, "上传实时特征值数据"), EIGENVALUE_HISTORY(2, "上传历史特征值数据"),
    WAVEDATA_REALTIME(3, "上传实时波形数据"), WAVEDATA_HISTORY(4, "上传历史波形数据");

    private int value;
    private String name;

    CommandTypeEnum(int value, String name) {
        this.value = value;
        this.name = name;
    }

    public int getValue() {
        return value;
    }

    public String getName() {
        return name;
    }

    public boolean equals(CommandTypeEnum item) {
        return this.getValue() == item.getValue() && this.getName().equals(item.getValue());
    }
}
